|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.vtp.desktop.projects.voice.internals.VoiceModel
public class VoiceModel
A model that represents the voice project XML format.
| Field Summary | |
|---|---|
static java.lang.String |
NS_URI_VOICE
The namespace URI used for the top-level elemenets. |
static java.lang.String |
PREFIX_VOICE
The prefix used for the top-level elemenets. |
| Constructor Summary | |
|---|---|
VoiceModel(org.eclipse.core.resources.IFile descriptor)
Creates a new VoiceModel. |
|
VoiceModel(IVoiceProject project)
Creates a new VoiceModel. |
|
| Method Summary | |
|---|---|
void |
addChangeObserver(java.lang.Runnable observer)
Adds a change observer to this model. |
IVoiceProject |
getProject()
Returns the project this model is contained in. |
Content |
getSharedContent(java.lang.String name)
Returns the shared content value under the specified name or null if no such content exists in this model. |
java.lang.String[] |
getSharedContentNames()
Returns the names of all the shared content items in this model. |
void |
load()
Load the descriptor represented by this model. |
void |
putSharedContent(java.lang.String name,
Content content)
Sets the shared content item registered under the specified name. |
void |
removeChangeObserver(java.lang.Runnable observer)
Removes a change observer from this model. |
void |
removeSharedContent(java.lang.String name)
Removes the shared content item under the specified name. |
void |
save(org.eclipse.core.runtime.IProgressMonitor monitor)
Saves the descriptor represented by this model. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String NS_URI_VOICE
public static final java.lang.String PREFIX_VOICE
| Constructor Detail |
|---|
public VoiceModel(org.eclipse.core.resources.IFile descriptor)
public VoiceModel(IVoiceProject project)
| Method Detail |
|---|
public IVoiceProject getProject()
public java.lang.String[] getSharedContentNames()
public Content getSharedContent(java.lang.String name)
null if no such content exists in this model.
name - The name of the content to return.
null if no such content exists in this model.
public void putSharedContent(java.lang.String name,
Content content)
name - The name to regster the shared content item under.content - The value of the shared content item or null to
remove the specified item.public void removeSharedContent(java.lang.String name)
name - The name of the shared content item to remove.
public void load()
throws java.io.IOException
java.io.IOException - If the descriptor cannot be loaded.
public void save(org.eclipse.core.runtime.IProgressMonitor monitor)
throws java.io.IOException
monitor - The progress monitor to notify or null if no
monitoring is desired.
java.io.IOException - If the descriptor cannot be loaded.public void addChangeObserver(java.lang.Runnable observer)
observer - The observer to add.public void removeChangeObserver(java.lang.Runnable observer)
observer - The observer to remove.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||